All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.sg.SequenceGrabber

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.std.comp.ComponentIdentifier
                   |
                   +----quicktime.std.comp.Component
                           |
                           +----quicktime.std.sg.SequenceGrabber

public final class SequenceGrabber
extends Component
implements QuickTimeLib
Assists in importing sound and video into a movie. The SeqGrabComponent implements methods for a corresponding QuickTime ComponentInstance structure. refer to SeqGrabComponent in QuickTime


Constructor Index

 o SequenceGrabber()
Opens the specified movie export component,'barg', with any subType.
 o SequenceGrabber(int)
Opens the specified movie export component,'barg', with the given subType.
 o SequenceGrabber(int, int)
Opens the specified Sequence grabber component based on the type and Subtype

QuickTime::OpenADefaultComponent



QuickTime::SGInitialize

Method Index

 o disposeChannel(SGChannel)
Removes a channel from a sequence grabber component.
 o disposeOutput(SGOutput)
Disposes of an output associated with a sequence grabber.
 o getDataOutputFile()
Allows you to determine the movie file that is currently assigned to a sequence grabber component.
 o getDataOutputFlags()
Allows you to determine the record control flags that is currently assigned to a sequence grabber component.
 o getDataRef()
Determines the data reference that is currently assigned to a sequence grabber component.
 o getDataRefFlags()
Determines the data reference flags that control the record operation.
 o getGWorld()
Returns the QDGraphics of the sequence grabber.
 o getGWorldDevice()
Returns the current device of the sequence grabber.
 o getIndChannel(int)
Allows you to obtain the channel type currently in use by a sequence grabber component.
 o getIndChannelType(int)
Allows you to obtain info on the channel type currently in use by a sequence grabber component.
 o getMaximumRecordTime()
Allows you to retrieve the time limit you have set for recording.
 o getMovie()
Determines a reference to the movie that contains the data collected during a record operation.
 o getPause()
Specifies control information about the current operation to the sequence grabber component.
 o getSettings()
Retrieves the current settings of all channels used by the sequence grabber.
 o getStorageSpaceRemaining()
Allows you to monitor the amount of space remaining for use during a record operation.
 o getTimeBase()
Returns the SequenceGrabbers's current time Base.
 o getTimeRemaining()
Allows you to obtain an estimate of the amount of recording time that remains for the current recording operation.
 o grabPict(QDRect, int, int)
Provides a simple interface to obtain a QuickDraw picture from a sequence grabber component.
 o idle()
Provides processing time to the sequence grabber component and its channel components.
 o isPreviewMode()
Determines whether the particular sequence grabber is in preview mode.
 o isRecordMode()
Determines whether the particular sequence grabber is in Record mode.
 o pause(int)
You can suspend or restart a record or preview operation by calling the pause function.
 o prepare(boolean, boolean)
Instructs the sequence grabber to get ready to begin a preview or record operation.
 o release()
Instructs the sequence grabber to release any system resources it allocated previously.
 o setDataOutput(QTFile, int)
Specifies the movie file for a record operation and other options that govern the operation.
 o setDataRef(DataRef, int)
Determines control information flags for the current operation.
 o setGWorld(QDGraphics, GDevice)
Establishes the graphics port and device for a sequence grabber.
 o setMaximumRecordTime(int)
Allows you to set the time limit for recording.
 o setSettings(UserData)
Configures a sequence grabber.
 o startPreview()
Instructs the sequence grabber to begin processing data from its channels.
 o startRecord()
Instructs the sequence grabber component to begin collecting data from its channels.
 o stop()
Stops a preview or record operation.
 o update(Region)
The SGUpdate function allows you to tell the sequence grabber that it must refresh its display.
 o writeExtendedMovieData(SGChannel, int, int, long, SGOutput)
Allows your channel component to add data to a movie.

Constructors

 o SequenceGrabber
 public SequenceGrabber() throws QTException
Opens the specified movie export component,'barg', with any subType.

QuickTime::OpenADefaultComponent



QuickTime::SGInitialize

 o SequenceGrabber
 public SequenceGrabber(int subType) throws QTException
Opens the specified movie export component,'barg', with the given subType.

QuickTime::OpenADefaultComponent



QuickTime::SGInitialize

Parameters:
subType - The movie export component sub type
 o SequenceGrabber
 public SequenceGrabber(int type,
                        int subType) throws QTException
Opens the specified Sequence grabber component based on the type and Subtype

QuickTime::OpenADefaultComponent



QuickTime::SGInitialize

Parameters:
Type - The movie export component type
subType - The movie export component sub type

Methods

 o setGWorld
 public void setGWorld(QDGraphics port,
                       GDevice gdh) throws StdQTException
Establishes the graphics port and device for a sequence grabber. The sequence grabber component displays the recorded or previewed data in this graphics world.

QuickTime::SGSetGWorld QuickTime::SGSetGWorld

Parameters:
port - Specifies the destination graphics port. The specified graphics port must be a color graphics port.
gdh - Specifies the destination graphics device. Set this parameter to null to use the current device. If the gp parameter specifies a graphics world, set this parameter to null to use that graphics world's graphics device.
 o getGWorld
 public QDGraphics getGWorld() throws StdQTException
Returns the QDGraphics of the sequence grabber.

QuickTime::SGGetGWorld

Returns:
The current graf port of the sequence grabber.
 o getGWorldDevice
 public GDevice getGWorldDevice() throws StdQTException
Returns the current device of the sequence grabber.

QuickTime::SGGetGWorld

Returns:
The current device of the sequence grabber.
 o disposeChannel
 public void disposeChannel(SGChannel c) throws StdQTException
Removes a channel from a sequence grabber component.

QuickTime::SGDisposeChannel

Parameters:
c - the channel you want to dispose
 o disposeOutput
 public void disposeOutput(SGOutput c) throws StdQTException
Disposes of an output associated with a sequence grabber.

QuickTime::SGDisposeOutput

Parameters:
c - the output you want to dispose
 o writeExtendedMovieData
 public void writeExtendedMovieData(SGChannel c,
                                    int p,
                                    int len,
                                    long offset,
                                    SGOutput sgOut) throws StdQTException
Allows your channel component to add data to a movie.

QuickTime::SGWriteExtendedMovieData(

Parameters:
offset - offset to the new data in the movie. If the movie is in memory, the returned offset reflects the location the data will have in the movie on a permanent storage device.
sgOut - output to which the data was written. associated with the sequence grabber output.
 o startPreview
 public void startPreview() throws StdQTException
Instructs the sequence grabber to begin processing data from its channels.

QuickTime::SGStartPreview QuickTime::SGStartPreview

 o startRecord
 public void startRecord() throws StdQTException
Instructs the sequence grabber component to begin collecting data from its channels.

QuickTime::SGStartRecord QuickTime::SGStartRecord

 o idle
 public void idle() throws StdQTException
Provides processing time to the sequence grabber component and its channel components. After starting a preview or record operation, you should call this function as often as possible, until you stop the operation by calling stop.

QuickTime::SGIdle QuickTime::SGIdle

 o update
 public void update(Region updateRgn) throws StdQTException
The SGUpdate function allows you to tell the sequence grabber that it must refresh its display.

QuickTime::SGUpdate

Parameters:
updateRgn - Indicates the part of the QDGraphics that has been changed. If you set this parameter to null, the sequence grabber uses the window’s current visible region
 o stop
 public void stop() throws StdQTException
Stops a preview or record operation.

QuickTime::SGStop QuickTime::SGStop

 o pause
 public void pause(int pause) throws StdQTException
You can suspend or restart a record or preview operation by calling the pause function. You supply a byte value that instructs the sequence grabber whether to pause or restart the current operation.

QuickTime::SGPause QuickTime::SGPause

Parameters:
pause - Instructs whether to suspend or restart the current operation.
 o getPause
 public int getPause() throws StdQTException
Specifies control information about the current operation to the sequence grabber component.

QuickTime::SGGetPause

Parameters:
sgFlags - The control flags for the current operation.
 o prepare
 public void prepare(boolean prepareForPreview,
                     boolean prepareForRecord) throws StdQTException
Instructs the sequence grabber to get ready to begin a preview or record operation. May commence both operations. You specify the operations.

QuickTime::SGPrepare QuickTime::SGPrepare

Parameters:
prepareForPreview - The preview operation.
prepareForRecord - The record operation.
 o release
 public void release() throws StdQTException
Instructs the sequence grabber to release any system resources it allocated previously. You should call release whenever you call SGPrepare without subsequently starting a record or preview operation.

QuickTime::SGRelease QuickTime::SGRelease

 o getMovie
 public Movie getMovie()
Determines a reference to the movie that contains the data collected during a record operation. You can use this movie identifier with Movie Toolbox functions.

QuickTime::SGGetMovie

Returns:
The Movie or null if there is no movie.
 o setSettings
 public void setSettings(UserData ud) throws StdQTException
Configures a sequence grabber. You provide this configuration information in a Movie Toolbox user data list. Typically, you obtain this configuration data from the getSettings method. Note that the sequence grabber disposes of any of its current channels before applying this configuration information. It then opens connections to new channels as appropriate. You can restore saved settings by using the Movie Toolbox's NewUserDataFromHandle function.

QuickTime::SGSetSettings

Parameters:
ud - Specifies a user data list with configuration information for the sequence grabber.
 o getSettings
 public UserData getSettings() throws StdQTException
Retrieves the current settings of all channels used by the sequence grabber. The sequence grabber places all of this configuration information into a Movie Toolbox user data list.

QuickTime::SGGetSettings

Returns:
A Movie Toolbox user data list that contains the configuration information.
 o grabPict
 public Pict grabPict(QDRect bounds,
                      int offscreenDepth,
                      int grabPictFlags) throws QTException
Provides a simple interface to obtain a QuickDraw picture from a sequence grabber component. The sequence grabber can display the picture directly, or it can write the picture to an offscreen buffer. This function is limited in scope, however, and does not allow you to control all of the parameters that govern the operation. When you call this function, the sequence grabber component obtains and configures appropriate sequence grabber channel components (if necessary), grabs the data, and then releases any components it obtained.

QuickTime::SGGrabPict

Parameters:
bounds - The bounding rectangle.
offscreenDepth - The bit depth of the Pict.
grabPictFlags - The flags for the operation.
Returns:
The Pict.
 o setDataOutput
 public void setDataOutput(QTFile movieFile,
                           int whereFlags) throws QTException
Specifies the movie file for a record operation and other options that govern the operation. The sequence grabber component stores the data that is obtained during the record operation as a QuickTime movie in this file. This function also allows you to control some aspects of the record operation, which are related to output, by specifying control flags.

QuickTime::SGSetDataOutput

Parameters:
movieFile - Specifies which movie file to access.
 o getDataOutputFile
 public QTFile getDataOutputFile() throws QTException
Allows you to determine the movie file that is currently assigned to a sequence grabber component.

QuickTime::SGGetDataOutput

Returns:
The QTFile movie file.
 o getDataOutputFlags
 public int getDataOutputFlags() throws QTException
Allows you to determine the record control flags that is currently assigned to a sequence grabber component.

QuickTime::SGGetDataOutput

Returns:
The record control flags.
 o setDataRef
 public void setDataRef(DataRef dataRef,
                        int whereFlags) throws StdQTException
Determines control information flags for the current operation.

QuickTime::SGSetDataRef

Parameters:
dataRef - information that identifies the destination container
flags - that control the record operation
 o getDataRef
 public DataRef getDataRef() throws StdQTException
Determines the data reference that is currently assigned to a sequence grabber component.

QuickTime::SGGetDataRef

Returns:
the dataRef
 o getDataRefFlags
 public int getDataRefFlags() throws StdQTException
Determines the data reference flags that control the record operation.

QuickTime::SGGetDataRef

Returns:
the record flags
 o setMaximumRecordTime
 public void setMaximumRecordTime(int ticks) throws StdQTException
Allows you to set the time limit for recording.

QuickTime::SGSetMaximumRecordTime

Returns:
the ticks of recording time. If 0 then no limit has been set
 o getMaximumRecordTime
 public int getMaximumRecordTime() throws StdQTException
Allows you to retrieve the time limit you have set for recording.

QuickTime::SGGetMaximumRecordTime

Returns:
the ticks of recording time. If 0 then no limit has been set
 o getStorageSpaceRemaining
 public int getStorageSpaceRemaining() throws StdQTException
Allows you to monitor the amount of space remaining for use during a record operation.

QuickTime::SGGetStorageSpaceRemaining

Returns:
the number of bytes left for the current record operation.
 o getTimeRemaining
 public int getTimeRemaining() throws StdQTException
Allows you to obtain an estimate of the amount of recording time that remains for the current recording operation.

QuickTime::SGGetTimeRemaining

Returns:
the ticks of recording time remaining
 o isPreviewMode
 public boolean isPreviewMode() throws StdQTException
Determines whether the particular sequence grabber is in preview mode.

QuickTime::SGGetMode

Returns:
s boolean true or false if in preview mode
 o isRecordMode
 public boolean isRecordMode() throws StdQTException
Determines whether the particular sequence grabber is in Record mode.

QuickTime::SGGetMode

Returns:
s boolean true or false if in Record mode
 o getTimeBase
 public TimeBase getTimeBase() throws StdQTException
Returns the SequenceGrabbers's current time Base.

QuickTime::SGGetTimeBase

Returns:
the TimeBase
 o getIndChannelType
 public int getIndChannelType(int index) throws StdQTException
Allows you to obtain info on the channel type currently in use by a sequence grabber component.

QuickTime::SGGetIndChannel

Parameters:
index - identifies the channel to be queried
Returns:
the channel type (e.g VideoMediaType, SoundMediaType etc..)
 o getIndChannel
 public SGChannel getIndChannel(int index) throws QTException
Allows you to obtain the channel type currently in use by a sequence grabber component.

QuickTime::SGGetIndChannel

Parameters:
index - identifies the channel to be queried
Returns:
the connection to the channel.

All Packages  Class Hierarchy  This Package  Previous  Next  Index